package org.blog.service.util;

import org.blog.model.ActionType;
import org.blog.model.ValidateModel;

public class ValidateHelper {

	/**
	 * 对对象进行验证
	 * @param t
	 * @param type
	 * @return
	 */
	public static boolean validate(ValidateModel t, ActionType type) {
		if (t != null && t.validate(type)) {
			return true;
		}
		return false;
	}

}
